package com.yic.module.mes.controller.admin.itemproduce.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 产品生产信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ItemProduceBaseVO {

    @Schema(description = "工厂", requiredMode = Schema.RequiredMode.REQUIRED, example = "1876")
    @NotNull(message = "工厂不能为空")
    private Long factoryId;

    @Schema(description = "生产车间", requiredMode = Schema.RequiredMode.REQUIRED, example = "31612")
    @NotNull(message = "生产车间不能为空")
    private Long workshopId;

    @Schema(description = "产品信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "4249")
    @NotNull(message = "产品信息不能为空")
    private Long itemId;

    @Schema(description = "质检模式", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "质检模式不能为空")
    private Integer qualityType;

    @Schema(description = "领料模式", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "领料模式不能为空")
    private Integer pickingType;

}
